package com.liuweidihuangwan.jingdong.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName shoping
 */
@TableName(value ="shoping")
@Data
public class Shoping implements Serializable {
    /**
     * 购物车ID
     */
    @TableId(type = IdType.AUTO)
    private Integer shopID;

    /**
     * 用户ID
     */
    private Integer userID;

    /**
     * 商品ID
     */
    private Integer spID;

    /**
     * 加入购物车时间
     */
    private Date time;

    /**
     * 数量
     */
    private Integer num;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}